<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Interface IShouldMapTestBuilder
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Interface IShouldMapTestBuilder
   ">
    <meta name="generator" content="docfx 2.5.0.0">
    {% seo %}
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <a class="navbar-brand" href="../index.html">
                MY TESTED ASP.NET CORE MVC DOCS
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content">
              
              
              <h1 id="MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder" data-uid="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder">Interface IShouldMapTestBuilder
              </h1>
              <div class="markdown level0 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Used for building and testing a route.</p>
</div>
              <div class="markdown level0 conceptual"></div>
              <div class="inheritedMembers">
                <h5>Inherited Members</h5>
                <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IResolvedRouteTestBuilder.html#MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IResolvedRouteTestBuilder_ToRouteValue_System_String_">IResolvedRouteTestBuilder.ToRouteValue(String)</a>
                </div>
                <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IResolvedRouteTestBuilder.html#MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IResolvedRouteTestBuilder_ToRouteValue_System_String_System_Object_">IResolvedRouteTestBuilder.ToRouteValue(String, Object)</a>
                </div>
                <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IResolvedRouteTestBuilder.html#MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IResolvedRouteTestBuilder_ToRouteValues_System_Object_">IResolvedRouteTestBuilder.ToRouteValues(Object)</a>
                </div>
                <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IResolvedRouteTestBuilder.html#MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IResolvedRouteTestBuilder_ToRouteValues_System_Collections_Generic_IDictionary_System_String_System_Object__">IResolvedRouteTestBuilder.ToRouteValues(IDictionary&lt;String, Object&gt;)</a>
                </div>
                <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IResolvedRouteTestBuilder.html#MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IResolvedRouteTestBuilder_ToDataToken_System_String_">IResolvedRouteTestBuilder.ToDataToken(String)</a>
                </div>
                <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IResolvedRouteTestBuilder.html#MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IResolvedRouteTestBuilder_ToDataToken_System_String_System_Object_">IResolvedRouteTestBuilder.ToDataToken(String, Object)</a>
                </div>
                <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IResolvedRouteTestBuilder.html#MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IResolvedRouteTestBuilder_ToDataTokens_System_Object_">IResolvedRouteTestBuilder.ToDataTokens(Object)</a>
                </div>
                <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IResolvedRouteTestBuilder.html#MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IResolvedRouteTestBuilder_ToDataTokens_System_Collections_Generic_IDictionary_System_String_System_Object__">IResolvedRouteTestBuilder.ToDataTokens(IDictionary&lt;String, Object&gt;)</a>
                </div>
              </div>
              <h6><strong>Namespace</strong>:MyTested.AspNetCore.Mvc.Builders.Contracts.Routes</h6>
              <h6><strong>Assembly</strong>:MyTested.AspNetCore.Mvc.Core.dll</h6>
              <h5 id="MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_syntax">Syntax</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">public interface IShouldMapTestBuilder : IResolvedRouteTestBuilder</code></pre>
              </div>
              <h3 id="methods">Methods
              </h3>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/lite-package/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_To_System_String_System_String_.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.To(System.String%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/gh-pages/_docfx/code/src/MyTested.AspNetCore.Mvc.Core/Builders/Contracts/Routes/IShouldMapTestBuilder.cs/#L32">View Source</a>
              </span>
              <h4 id="MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_To_System_String_System_String_" data-uid="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.To(System.String,System.String)">To(String, String)</h4>
              <div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Tests whether the built route is resolved to the action and controller with the provided names.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">IAndResolvedRouteTestBuilder To(string actionName, string controllerName)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">System.String</span></td>
                    <td><em>actionName</em></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">Expected action name.</p>
</td>
                  </tr>
                  <tr>
                    <td><span class="xref">System.String</span></td>
                    <td><em>controllerName</em></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">Expected controller name.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">The <span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span>.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/lite-package/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_To__1.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.To%60%601%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/gh-pages/_docfx/code/src/MyTested.AspNetCore.Mvc.Core/Builders/Contracts/Routes/IShouldMapTestBuilder.cs/#L39">View Source</a>
              </span>
              <h4 id="MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_To__1" data-uid="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.To``1">To&lt;TController&gt;()</h4>
              <div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Tests whether the built route is resolved to the controller of the given type.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">IAndResolvedRouteTestBuilder To&lt;TController&gt;()where TController : class</code></pre>
              </div>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">The <span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span>.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="typeParameters">Type Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><em>TController</em></td>
                    <td>Type of the expected controller.</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/lite-package/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_To__1_System_Linq_Expressions_Expression_System_Action___0___.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.To%60%601(System.Linq.Expressions.Expression%7BSystem.Action%7B%60%600%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/gh-pages/_docfx/code/src/MyTested.AspNetCore.Mvc.Core/Builders/Contracts/Routes/IShouldMapTestBuilder.cs/#L48">View Source</a>
              </span>
              <h4 id="MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_To__1_System_Linq_Expressions_Expression_System_Action___0___" data-uid="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.To``1(System.Linq.Expressions.Expression{System.Action{``0}})">To&lt;TController&gt;(Expression&lt;Action&lt;TController&gt;&gt;)</h4>
              <div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Tests whether the built route is resolved to the action provided by the expression.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">IAndResolvedRouteTestBuilder To&lt;TController&gt;(Expression&lt;Action&lt;TController&gt;&gt; actionCall)where TController : class</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Action</span>&lt;TController&gt;&gt;</td>
                    <td><em>actionCall</em></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">Method call expression indicating the expected resolved action.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">The <span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span>.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="typeParameters">Type Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><em>TController</em></td>
                    <td>Type of expected resolved controller.</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/lite-package/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_To__1_System_Linq_Expressions_Expression_System_Func___0_System_Threading_Tasks_Task___.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.To%60%601(System.Linq.Expressions.Expression%7BSystem.Func%7B%60%600%2CSystem.Threading.Tasks.Task%7D%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/gh-pages/_docfx/code/src/MyTested.AspNetCore.Mvc.Core/Builders/Contracts/Routes/IShouldMapTestBuilder.cs/#L57">View Source</a>
              </span>
              <h4 id="MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_To__1_System_Linq_Expressions_Expression_System_Func___0_System_Threading_Tasks_Task___" data-uid="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.To``1(System.Linq.Expressions.Expression{System.Func{``0,System.Threading.Tasks.Task}})">To&lt;TController&gt;(Expression&lt;Func&lt;TController, Task&gt;&gt;)</h4>
              <div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Tests whether the built route is resolved to the asynchronous action provided by the expression.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">IAndResolvedRouteTestBuilder To&lt;TController&gt;(Expression&lt;Func&lt;TController, Task&gt;&gt; actionCall)where TController : class</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">System.Linq.Expressions.Expression</span>&lt;<span class="xref">System.Func</span>&lt;TController, <span class="xref">System.Threading.Tasks.Task</span>&gt;&gt;</td>
                    <td><em>actionCall</em></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">Method call expression indicating the expected resolved asynchronous action.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">The <span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span>.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="typeParameters">Type Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><em>TController</em></td>
                    <td>Type of expected resolved controller.</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/lite-package/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_ToAction_System_String_.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.ToAction(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/gh-pages/_docfx/code/src/MyTested.AspNetCore.Mvc.Core/Builders/Contracts/Routes/IShouldMapTestBuilder.cs/#L17">View Source</a>
              </span>
              <h4 id="MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_ToAction_System_String_" data-uid="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.ToAction(System.String)">ToAction(String)</h4>
              <div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Tests whether the built route is resolved to the action with the provided name.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">IAndResolvedRouteTestBuilder ToAction(string actionName)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">System.String</span></td>
                    <td><em>actionName</em></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">Expected action name.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">The <span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span>.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/lite-package/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_ToController_System_String_.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.ToController(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/gh-pages/_docfx/code/src/MyTested.AspNetCore.Mvc.Core/Builders/Contracts/Routes/IShouldMapTestBuilder.cs/#L24">View Source</a>
              </span>
              <h4 id="MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_ToController_System_String_" data-uid="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.ToController(System.String)">ToController(String)</h4>
              <div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Tests whether the built route is resolved to the controller with the provided name.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">IAndResolvedRouteTestBuilder ToController(string controllerName)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">System.String</span></td>
                    <td><em>controllerName</em></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">Expected controller name.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span></td>
                    <td><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="1" sourceendlinenumber="1">The <span class="xref">MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IAndResolvedRouteTestBuilder</span>.</p>
</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/lite-package/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_ToNonExistingRoute.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.ToNonExistingRoute%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/gh-pages/_docfx/code/src/MyTested.AspNetCore.Mvc.Core/Builders/Contracts/Routes/IShouldMapTestBuilder.cs/#L63">View Source</a>
              </span>
              <h4 id="MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder_ToNonExistingRoute" data-uid="MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.ToNonExistingRoute">ToNonExistingRoute()</h4>
              <div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Tests whether the built route cannot be resolved.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">void ToNonExistingRoute()</code></pre>
              </div>
              <h3 id="extensionmethods">Extension Methods</h3>
              <div>
                  <span class="xref">MyTested.AspNetCore.Mvc.ResolvedRouteTestBuilderDataAnnotationsExtensions.ToValidModelState()</span>
              </div>
              <div>
                  <span class="xref">MyTested.AspNetCore.Mvc.ResolvedRouteTestBuilderDataAnnotationsExtensions.ToInvalidModelState(System.Nullable&lt;System.Int32&gt;)</span>
              </div>
              <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Utilities.Extensions.ObjectExtensions.html#MyTested_AspNetCore_Mvc_Utilities_Extensions_ObjectExtensions_TryCastTo__1_System_Object_">ObjectExtensions.TryCastTo&lt;T&gt;()</a>
              </div>
              <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Utilities.Extensions.ObjectExtensions.html#MyTested_AspNetCore_Mvc_Utilities_Extensions_ObjectExtensions_GetName_System_Object_">ObjectExtensions.GetName()</a>
              </div>
              <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Utilities.Extensions.ObjectExtensions.html#MyTested_AspNetCore_Mvc_Utilities_Extensions_ObjectExtensions_GetErrorMessageName_System_Object_System_Boolean_System_String_">ObjectExtensions.GetErrorMessageName(Boolean, String)</a>
              </div>
              <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Utilities.Extensions.ObjectExtensions.html#MyTested_AspNetCore_Mvc_Utilities_Extensions_ObjectExtensions_ToStringValueDictionary_System_Object_">ObjectExtensions.ToStringValueDictionary()</a>
              </div>
              <div>
                  <a class="xref" href="MyTested.AspNetCore.Mvc.Utilities.Extensions.ObjectExtensions.html#MyTested_AspNetCore_Mvc_Utilities_Extensions_ObjectExtensions_ToObjectValueDictionary_System_Object_">ObjectExtensions.ToObjectValueDictionary()</a>
              </div>
            </article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/lite-package/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_Builders_Contracts_Routes_IShouldMapTestBuilder.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.Builders.Contracts.Routes.IShouldMapTestBuilder%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/gh-pages/_docfx/code/src/MyTested.AspNetCore.Mvc.Core/Builders/Contracts/Routes/IShouldMapTestBuilder.cs/#L10" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            <span>Copyright © 2015-2016 <strong><a href="http://mytestedasp.net">MyTestedASP.NET</a></strong>. All Rights Reserved. Generated by <strong><a href="http://dotnet.github.io/docfx/">DocFX</a></strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
